/********************************************************************
 * Copyright(c) 2023-2023 Grayson Zheng.
 * File: bit.h
 * Description: The data reading program header file of the DHT11
 * temperature and humidity sensor module designed based on
 * 89C51/89C52.
 * Version: 1.0
 * Date: 2023-08-27
 * Author: zhengxinyu13@qq.com
 * ---------- Revision History ----------
 * <version>
 * <date>
 * <author>
 * <desc>
 * Modified to be suitable to the new coding rules in all functions.
 ********************************************************************/

#include "STC89C5xRC-rdp.h"
#include "datatype.h"
#include "bit.h"
#include "delay.h"

#ifndef __DHT11_H__
#define __DHT11_H__

#define CHAR_LENGTH 8

sbit DHT11_DATA = P4^6;

void read_DHT11_data(uint_8 *DHT11_data, uint_8 len);
uint_8 check_DHT11_data(uint_8 *DHT11_data, uint_8 len);

#endif
